const HomeView = () => import('@/views//home/HomeView.vue')
const NewsCreate = () => import('@/views/news-manage/NewsCreate.vue')
const NewsList = () => import('@/views/news-manage/NewsList.vue')
const NewsEdit = () => import('@/views/news-manage/NewsEdit.vue')
const UserList = () => import('@/views/user-manage/UserList.vue')
const UserAdd = () => import('@/views/user-manage/UserAdd.vue')
const ProductAdd = () => import('@/views/product-manage/ProductAdd.vue')
const ProductList = () => import('@/views/product-manage/ProductList.vue')
const ProductEdit = ()=>import('@/views/product-manage/ProductEdit.vue')
const CenterView = () => import('@/views/center/CenterView.vue')

const routes = [
    {
        path: '/home',
        name: 'home',
        component: HomeView
    },
    {
        path: '/news-manage/newsCreate',
        name: 'newsCreate',
        component: NewsCreate
    },
    {
        path: '/news-manage/newsList',
        name: 'newsList',
        component: NewsList
    },
    {
        path: '/news-manage/newsEdit/:id',
        name: 'newsEdit',
        component: NewsEdit
    },
    {
        path: '/user-manage/userList',
        name: 'userList',
        component: UserList
    },
    {
        path: '/user-manage/userAdd',
        name: 'userAdd',
        component: UserAdd
    },
    {
        path: '/product-manage/productAdd',
        name: 'productAdd',
        component: ProductAdd
    },
    {
        path: '/product-manage/productList',
        name: 'productList',
        component: ProductList
    },
    {
        path: '/product-manage/productEdit/:id',
        name: 'productEdit',
        component: ProductEdit
    },
    {
        path: '/center/centerView',
        name: 'centerView',
        component: CenterView
    },
]

export default routes;